package com.itheima.reggie.service;

import com.itheima.reggie.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> findAll(Long userId);

    AddressBook findById(Long id);

    void update(AddressBook addressBook);

    void addUser(AddressBook addressBook);

    void updateAll(AddressBook addressBook);
    //得到默认地址
    AddressBook getDefaultAddress(Long currentId);
}
